<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
  </head>
  <body>
    <h1><%= title %></h1>
    <p>Welcome to <%= title %></p>
	<form method="POST" action="/todo">
		<input type="text" name="item">
	</form>
	<% if (todos.length === 0) { %>
	  <h2>暂无数据</h2>
	<% } else { %>
		<ul>
		  <% for(let i = 0; i < todos.length; i++) { %>
		    <li><%= i + 1 %>- <%= todos[i] %></li>
		  <% } %>
		</ul>
	<% } %>
  </body>
</html>
